﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TankGameV1._0.Properties;

namespace TankGameV1._0
{
    class Equipment : GameObject
    {
        private static Image imgStar = Resources.star;
        private static Image imgBomb = Resources.bomb;
        private static Image imgTimer = Resources.timer;
        public int EquipmentType
        {
            get;
            set;
        }
        public Equipment(int x, int y, int type) : base(x, y, imgStar.Width, imgStar.Height)
        {
            this.EquipmentType = type;
        }
        public override void Draw(Graphics g)
        {
            switch (EquipmentType)
            {
                case 0:
                    g.DrawImage(imgStar, this.X, this.Y);
                    break;
                case 1:
                    g.DrawImage(imgBomb, this.X, this.Y);
                    break;
                case 2:
                    g.DrawImage(imgTimer, this.X, this.Y);
                    break;
            }
        }
    }
}
